import os
import sys

def process(file_path):
    for file in os.listdir(file_path):
        pkg_name = file.split("(")[1].split(")")[0]
        with open('diff_list.txt','r') as diff:
            for line in diff.readlines():
                if pkg_name == line.strip():
                    path = os.path.join(file_path,file)
                    print(path)
                    os.remove(path)
                    continue

if __name__ == '__main__':
    file_path = sys.argv[1]
    process(file_path)
